package com.mhc.haval.security.constant;


import com.google.common.collect.ImmutableSet;

/**
 * 权限常量
 *
 * @author Churry
 * @create 2017-08-28 16:39
 **/
public class Authorities {

    public static final Integer USER_EXPIERD = -1;
    public static final Integer USER_ACTIVE = 0;
    public static final Integer USER_LOCKED = 1;
    public static final String USERNAME_PARAMETER = "username";
    public static final String PASSWORD_PARAMETER = "password";
    public static final String ACCESS_DENIED = "Access denied";
    public static final String NO_AUTHORITY = "No authority!";
    public static final String ANONYMOUS_USER = "anonymousUser";
    public static final String ROLE_SYSADMIN = "ROLE_SYSADMIN";
    public static final String ALL_METHOD = "ALL";
    public static final ImmutableSet<String> PERMITALL_URL = ImmutableSet.of("/", "/login", "/favicon.ico",
            "/logout", "/static/**","/v2/api-docs", "/webjars/**", "/swagger-resources/**",
            "/swagger-ui.html", "/webSocket/**", "/messages/**", "/message/**", "/user/detail", "/location/mobilePhone/**",
            "/accessAllowedRole/list", "/feign/**");
}
